<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 求两个数之间的质数
        function fn(m, n) {
            var sun = "";
            for (i = m; i <= n; i++) {
                var count = 0;
                for (j = 2; j < i; j++) {
                    if (i % j === 0) {
                        count += 1
                    }
                }
                if (count === 0) {
                    sun += i + ","
                }
            }
            return sun
        }
        console.log(fn(100, 200))

    </script>
</body>

</html>